<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SipekSDK Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
	<!-- Main table. -->
<TABLE id="MainTable" cellSpacing="0" cellPadding="0" width="100%" border="0">
<!-- First Row,  logo. -->
<TR>
 <TD>
  <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
    <TR valign="bottom">

	<TD style="background-image: url(/images/bg1.jpg);">
	<!-- Logo section -->
	<table border="0" class="pj">
		<tr>
		<td vAlign="middle" width="46"><A href="http://sites.google.com/site/sipekvoip"><img alt="sipek logo" src="http://sites.google.com/site/sipekvoip/files/Sipek64x64.png" border="0"></A>
		</td>
		<td vAlign="top">
		<font face="Verdana,Arial,Helvetica" size="5"><b><A style="color: black; text-decoration: none" HREF="/">Sipek Software Development Kit</A></b></FONT><br>

		<FONT face="Arial,Helvetica" size="1"><A style="color: black; text-decoration: none" HREF="/">Open source SIP Software Development Kit - SipekSDK</A></FONT><br>
		<br>
<script type="text/javascript"><!--
google_ad_client = "pub-1698141058269504";
/* 728x15, created 3/21/08 */
google_ad_slot = "1887304858";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
		</td>
		</tr>
	</table>
	</TD>
    </TR>
  </TABLE>
 </TD>
</TR>

<!-- Second Row, a HR. -->

<TR>
    <td><hr size="2"></td>
</TR>
<!-- Third row, main contents. -->
<TR>
    <TD>
	     <TABLE id="ContentTable" cellSpacing="6" cellPadding="1" width="100%" border="0">
	     <TR valign="top">
		    <TD valign="top" width="160" style="background-image: url(/images/bg2.jpg);">

<h3>Links </h3>

<p><a href="http://sites.google.com/site/sipekvoip">Sipek Projects Home</a></p>

<p><a href="http://sites.google.com/site/sipekvoip/sipeksdk">SipekSdk</a></p>

<p><a href="http://sites.google.com/site/sipekvoip/Home/documentation/tutorial">SipekSdk Tutorial</a></p>

<p><a href="http://code.google.com/p/sipek2/">Sipek Softphone Project Home</a></p>

<p><a href="http://code.google.com/p/sipeksdk/">SipekSDK Project Home</a></p>

<p><a href="http://groups.google.com/group/sipek">Sipek Discussion Group</a></p>
<hr size="2">
<b>About:</b><FONT face="Arial, Verdana" size="1"> Sipek and SipekSDK are created by: Sasa Coh<br>
<br>

<script type="text/javascript"><!--
google_ad_client = "pub-1698141058269504";
/* 160x600, created 3/21/08 */
google_ad_slot = "1219054775";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p></p>

		    </TD>
		    <TD vAlign="top" style="border-left: dotted 1px; border-color=#C0C0C0;">&nbsp;</td>
      <TD>

	<p><A HREF="/">Home</A> --&gt; SipekSDK API Reference</p>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><b>Sipek</b>.<b>Common</b>.<b>CallControl</b>.<a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html">CCallManager</a>
  </div>
</div>
<div class="contents">
<h1>Sipek.Common.CallControl.CCallManager Class Reference</h1><!-- doxytag: class="Sipek::Common::CallControl::CCallManager" --><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html" title="CCallManager Main telephony class. Manages call instances. Handles user events and...">CCallManager</a> Main telephony class. Manages call instances. Handles user events and dispatches to a proper call instance automaton.  
<a href="#_details">More...</a>
<p>

<p>
<a href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#d93b06d8c12bed5d7dcb915b597de54f">updateGui</a> (int sessionId)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inform GUI to be refreshed.  <a href="#d93b06d8c12bed5d7dcb915b597de54f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#e34cf755acb2e141504c2ae5e8cce2d5">Initialize</a> (<a class="el" href="class_sipek_1_1_common_1_1_i_voip_proxy.html">IVoipProxy</a> proxy)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize telephony and VoIP stack. On success register accounts.  <a href="#e34cf755acb2e141504c2ae5e8cce2d5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#0713f7fa5e671206a390b31f81d8535f">Shutdown</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shutdown telephony and VoIP stack.  <a href="#0713f7fa5e671206a390b31f81d8535f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#2c9216795ef5819d4e58144e8b87e480">createOutboundCall</a> (string number)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create outgoing call using default accountId.  <a href="#2c9216795ef5819d4e58144e8b87e480"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#d4a278f36eba27ee03410385b4315b3b">createOutboundCall</a> (string number, int accountId)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create outgoing call from a given account.  <a href="#d4a278f36eba27ee03410385b4315b3b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#a4b10ec4a959312f0c1e4ab29864af6c">getCall</a> (int session)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#a79fe3c902d10b4c1804ecad369fa692">getCallInState</a> (EStateId stateId)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">ICollection&lt; <a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#5bacddb1b3517297b06af52330e613d5">enumCallsInState</a> (EStateId stateId)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Collect state machines in a given state.  <a href="#5bacddb1b3517297b06af52330e613d5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#d8cd8e552edd61a9bf084a8de0773902">onUserRelease</a> (int session)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">User triggers a call release for a given session.  <a href="#d8cd8e552edd61a9bf084a8de0773902"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#960e872962c5f2c26866a07ccf06cc2a">onUserAnswer</a> (int session)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">User accepts call for a given session In case of multi call put current active call to Hold.  <a href="#960e872962c5f2c26866a07ccf06cc2a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#22e2f273daa3af4879cf63a59fad6ef1">onUserHoldRetrieve</a> (int session)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">User put call on hold or retrieve.  <a href="#22e2f273daa3af4879cf63a59fad6ef1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#f63c0fedebee5a183a3345778cc8def5">onUserTransfer</a> (int session, string number)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">User starts a call transfer.  <a href="#f63c0fedebee5a183a3345778cc8def5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#22169a336b5dc7c530d52d23be75b644">onUserDialDigit</a> (int session, string digits, EDtmfMode mode)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#3ddf1524c1b9617939b978b2bfb5fffc">onUserConference</a> (int session)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#3cfb8f97192f7aaacfa958f3832a2c2b">activatePendingAction</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Properties</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#c5b810a69009236b83d73448f8ea962d">this</a> [int index]<code> [get]</code></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Call indexer.  <a href="#c5b810a69009236b83d73448f8ea962d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">Dictionary&lt; int, <a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#3cb34ad8a6fa6b9af50e6c0e85b9fee1">CallList</a><code> [get]</code></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieve a list of all calls (state machines).  <a href="#3cb34ad8a6fa6b9af50e6c0e85b9fee1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html">CCallManager</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#4781b1b49c45ecd27f4a22d7d81ceecf">Instance</a><code> [get]</code></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html" title="CCallManager Main telephony class. Manages call instances. Handles user events and...">CCallManager</a> Singleton.  <a href="#4781b1b49c45ecd27f4a22d7d81ceecf"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Events</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">DCallStateRefresh&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html#74ebb15ae1a3180fa7ba22dc8999b5e8">CallStateRefresh</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Notify about call state changed in automaton with given sessionId.  <a href="#74ebb15ae1a3180fa7ba22dc8999b5e8"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html" title="CCallManager Main telephony class. Manages call instances. Handles user events and...">CCallManager</a> Main telephony class. Manages call instances. Handles user events and dispatches to a proper call instance automaton. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="d93b06d8c12bed5d7dcb915b597de54f"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::updateGui" ref="d93b06d8c12bed5d7dcb915b597de54f" args="(int sessionId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.updateGui           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>sessionId</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Inform GUI to be refreshed. 
<p>

</div>
</div><p>
<a class="anchor" name="e34cf755acb2e141504c2ae5e8cce2d5"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::Initialize" ref="e34cf755acb2e141504c2ae5e8cce2d5" args="(IVoipProxy proxy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Sipek.Common.CallControl.CCallManager.Initialize           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_sipek_1_1_common_1_1_i_voip_proxy.html">IVoipProxy</a>&nbsp;</td>
          <td class="paramname"> <em>proxy</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize telephony and VoIP stack. On success register accounts. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>initialiation status</dd></dl>

</div>
</div><p>
<a class="anchor" name="0713f7fa5e671206a390b31f81d8535f"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::Shutdown" ref="0713f7fa5e671206a390b31f81d8535f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.Shutdown           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Shutdown telephony and VoIP stack. 
<p>

</div>
</div><p>
<a class="anchor" name="2c9216795ef5819d4e58144e8b87e480"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::createOutboundCall" ref="2c9216795ef5819d4e58144e8b87e480" args="(string number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> Sipek.Common.CallControl.CCallManager.createOutboundCall           </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>number</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create outgoing call using default accountId. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>Number to call</td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="d4a278f36eba27ee03410385b4315b3b"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::createOutboundCall" ref="d4a278f36eba27ee03410385b4315b3b" args="(string number, int accountId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> Sipek.Common.CallControl.CCallManager.createOutboundCall           </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>accountId</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create outgoing call from a given account. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>Number to call</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>accountId</em>&nbsp;</td><td>Specified account Id </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="a4b10ec4a959312f0c1e4ab29864af6c"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::getCall" ref="a4b10ec4a959312f0c1e4ab29864af6c" args="(int session)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> Sipek.Common.CallControl.CCallManager.getCall           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="a79fe3c902d10b4c1804ecad369fa692"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::getCallInState" ref="a79fe3c902d10b4c1804ecad369fa692" args="(EStateId stateId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> Sipek.Common.CallControl.CCallManager.getCallInState           </td>
          <td>(</td>
          <td class="paramtype">EStateId&nbsp;</td>
          <td class="paramname"> <em>stateId</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>stateId</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="5bacddb1b3517297b06af52330e613d5"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::enumCallsInState" ref="5bacddb1b3517297b06af52330e613d5" args="(EStateId stateId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ICollection&lt;<a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&gt; Sipek.Common.CallControl.CCallManager.enumCallsInState           </td>
          <td>(</td>
          <td class="paramtype">EStateId&nbsp;</td>
          <td class="paramname"> <em>stateId</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Collect state machines in a given state. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>stateId</em>&nbsp;</td><td>state machine state</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>List of state machines</dd></dl>

</div>
</div><p>
<a class="anchor" name="d8cd8e552edd61a9bf084a8de0773902"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::onUserRelease" ref="d8cd8e552edd61a9bf084a8de0773902" args="(int session)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.onUserRelease           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
User triggers a call release for a given session. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td>session identification</td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="960e872962c5f2c26866a07ccf06cc2a"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::onUserAnswer" ref="960e872962c5f2c26866a07ccf06cc2a" args="(int session)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.onUserAnswer           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
User accepts call for a given session In case of multi call put current active call to Hold. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td>session identification</td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="22e2f273daa3af4879cf63a59fad6ef1"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::onUserHoldRetrieve" ref="22e2f273daa3af4879cf63a59fad6ef1" args="(int session)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.onUserHoldRetrieve           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
User put call on hold or retrieve. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td>session identification</td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="f63c0fedebee5a183a3345778cc8def5"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::onUserTransfer" ref="f63c0fedebee5a183a3345778cc8def5" args="(int session, string number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.onUserTransfer           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>number</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
User starts a call transfer. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td>session identification</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>number</em>&nbsp;</td><td>number to transfer</td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="22169a336b5dc7c530d52d23be75b644"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::onUserDialDigit" ref="22169a336b5dc7c530d52d23be75b644" args="(int session, string digits, EDtmfMode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.onUserDialDigit           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>digits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">EDtmfMode&nbsp;</td>
          <td class="paramname"> <em>mode</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>digits</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="3ddf1524c1b9617939b978b2bfb5fffc"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::onUserConference" ref="3ddf1524c1b9617939b978b2bfb5fffc" args="(int session)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.onUserConference           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>session</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>session</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="3cfb8f97192f7aaacfa958f3832a2c2b"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::activatePendingAction" ref="3cfb8f97192f7aaacfa958f3832a2c2b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sipek.Common.CallControl.CCallManager.activatePendingAction           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Property Documentation</h2>
<a class="anchor" name="c5b810a69009236b83d73448f8ea962d"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::this" ref="c5b810a69009236b83d73448f8ea962d" args="[int index]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a> Sipek.Common.CallControl.CCallManager.this[int index]<code> [get]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Call indexer. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>a sessionId</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>an instance of call state with provided sessionId</dd></dl>

</div>
</div><p>
<a class="anchor" name="3cb34ad8a6fa6b9af50e6c0e85b9fee1"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::CallList" ref="3cb34ad8a6fa6b9af50e6c0e85b9fee1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Dictionary&lt;int, <a class="el" href="class_sipek_1_1_common_1_1_i_state_machine.html">IStateMachine</a>&gt; Sipek.Common.CallControl.CCallManager.CallList<code> [get]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieve a list of all calls (state machines). 
<p>

</div>
</div><p>
<a class="anchor" name="4781b1b49c45ecd27f4a22d7d81ceecf"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::Instance" ref="4781b1b49c45ecd27f4a22d7d81ceecf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html">CCallManager</a> Sipek.Common.CallControl.CCallManager.Instance<code> [static, get]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<a class="el" href="class_sipek_1_1_common_1_1_call_control_1_1_c_call_manager.html" title="CCallManager Main telephony class. Manages call instances. Handles user events and...">CCallManager</a> Singleton. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>

</div>
</div><p>
<hr><h2>Event Documentation</h2>
<a class="anchor" name="74ebb15ae1a3180fa7ba22dc8999b5e8"></a><!-- doxytag: member="Sipek::Common::CallControl::CCallManager::CallStateRefresh" ref="74ebb15ae1a3180fa7ba22dc8999b5e8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DCallStateRefresh Sipek.Common.CallControl.CCallManager.CallStateRefresh          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Notify about call state changed in automaton with given sessionId. 
<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>callManager.cs</ul>
</div>
<hr><center>
<font face="Arial,Helvetica" size="1">SipekSdk - Open Source VoIP Software Development Kit<br>
<i>(c)2007-2008 Sasa Coh </i><a href="mailto:sasacoh@gmail.com">sasacoh@gmail.com</a></font>
</center>

				</TD>
				<TD vAlign="top"></TD>

			    </TR>
			</TABLE>
		    </TD>
		</TR>
	    </TABLE>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2163858-11");
pageTracker._trackPageview();
</script>

</BODY>
</HTML>
